You can set, get and clear WebInput value programmatically in client-side.
In this topic, you will learn how to use the method for set, get and clear the WebInput's value.
To set WebInput value
- Place the following code to set WebInput's value:
JavaScript Copy Code
function SetDateTimeFreeInput() { var wiDateTimeFreeInput = ISGetObject("wiDateTimeFreeInput"); wiDateTimeFreeInput.SetValueData("01-January-2007"); }
- Run the Project.
To get WebInput value
- Place the following code to get/retrieve WebInput's value:
JavaScript Copy Code
function GetDateTimeFreeInput() { var wiDateTimeFreeInput = ISGetObject("wiDateTimeFreeInput"); alert(wiDateTimeFreeInput.GetValueData()); }
- Run the Project.
To clear WebInput value
- Place the following code to clear WebInput's value:
JavaScript Copy Code
function ClearDateTimeFreeInput() { var wiDateTimeFreeInput = ISGetObject("wiDateTimeFreeInput"); wiDateTimeFreeInput.SetValueData(""); }
- Run the Project.